//
// Created by chengs1r on 2021/11/4.
//

#include <stdio.h>

enum Sex {
    MALE,
    FEMALE
};

struct Stu {
    char *id;
    char *name;
    char *address;
    enum Sex sex;
    int age;
};

typedef struct Stu student;

void print (student *s) {
    printf("id:%s\n", s->id);
    printf("name:%s\n", s->name);
    printf("address:%s\n", s->address);
    printf("sex:%s\n", s->sex == MALE ? "MALE" : "FEMALE");
    printf("age:%d\n", s->age);
}

int main () {
    student one = {"151220029", "高精成", "南京", MALE, 22};
    print(&one);
    return 0;
}

